﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace WebApplication1.Models
{
    public class Main
    {
        public User UserList { get; set; }
    }


    public class User
    {
        public int? Id { get; set; }

        [Required]
        public string Name { get; set; }

        public List<Movie> FavouriteMovies { get; set; }
    }

    public class Movie
    {
        [Required]
        public string Title { get; set; }

        public int Rating { get; set; }
    }
}